﻿using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
using System.ComponentModel.DataAnnotations;
using System.Diagnostics.CodeAnalysis;

namespace SubStationManagement.Server.Models
{
    public class DIDOSample
    {
        [BsonId]
        [BsonRepresentation(BsonType.ObjectId)]
        [Display(Name = "Id")]
        [NotNull]
        public string? Id { get; set; }

        /// <summary>
        /// 获得/设置 模块Id
        /// </summary>
        [Display(Name = "模块Id")]
        [NotNull, Required]
        public int ModuleId { get; set; }

        /// <summary>
        /// 获得/设置 时间戳
        /// </summary>
        [Display(Name = "时间戳")]
        [NotNull, Required]
        public DateTime TimeStamp { get; set; }

        /// <summary>
        /// 获得/设置 数字通道1
        /// </summary>
        [Display(Name = "数字通道1")]
        public bool? DI1 { get; set; }

        /// <summary>
        /// 获得/设置 数字通道2
        /// </summary>
        [Display(Name = "数字通道2")]
        public bool? DI2 { get; set; }

        /// <summary>
        /// 获得/设置 数字通道3
        /// </summary>
        [Display(Name = "数字通道3")]
        public bool? DI3 { get; set; }

        /// <summary>
        /// 获得/设置 数字通道4
        /// </summary>
        [Display(Name = "数字通道4")]
        public bool? DI4 { get; set; }

        /// <summary>
        /// 获得/设置 数字通道5
        /// </summary>
        [Display(Name = "数字通道5")]
        public bool? DI5 { get; set; }

        /// <summary>
        /// 获得/设置 数字通道6
        /// </summary>
        [Display(Name = "数字通道6")]
        public bool? DI6 { get; set; }

        /// <summary>
        /// 获得/设置 数字通道7
        /// </summary>
        [Display(Name = "数字通道7")]
        public bool? DI7 { get; set; }

        /// <summary>
        /// 获得/设置 数字通道8
        /// </summary>
        [Display(Name = "数字通道8")]
        public bool? DI8 { get; set; }

        /// <summary>
        /// 获得/设置 数字通道9
        /// </summary>
        [Display(Name = "数字通道9")]
        public bool? DI9 { get; set; }

        /// <summary>
        /// 获得/设置 数字通道10
        /// </summary>
        [Display(Name = "数字通道10")]
        public bool? DI10 { get; set; }

        /// <summary>
        /// 获得/设置 数字通道11
        /// </summary>
        [Display(Name = "数字通道11")]
        public bool? DI11 { get; set; }

        /// <summary>
        /// 获得/设置 数字通道12
        /// </summary>
        [Display(Name = "数字通道12")]
        public bool? DI12 { get; set; }

        /// <summary>
        /// 获得/设置 数字通道13
        /// </summary>
        [Display(Name = "数字通道13")]
        public bool? DI13 { get; set; }

        /// <summary>
        /// 获得/设置 数字通道14
        /// </summary>
        [Display(Name = "数字通道14")]
        public bool? DI14 { get; set; }

        /// <summary>
        /// 获得/设置 数字通道15
        /// </summary>
        [Display(Name = "数字通道15")]
        public bool? DI15 { get; set; }

        /// <summary>
        /// 获得/设置 数字通道16
        /// </summary>
        [Display(Name = "数字通道16")]
        public bool? DI16 { get; set; }
    }
}

